{extend name="base" /} {block name="body"}
<div class="layui-body">
	<div class="navbar">
		<a><cite>系统设置</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href="{:url('index')}"><cite>情报站</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href=""><cite>添加政策信息</cite></a>
	</div>
	<!--tab标签-->
	<div class="layui-tab layui-tab-card margin10">
		<ul class="layui-tab-title">
			<li class="layui-this">添加政策信息</li>
		</ul>
		<div class="layui-tab-content">
			<form class="layui-form form-container layui-form-pane" action="{:url()}" method="post">
				<div class="layui-form-item">
					<label class="layui-form-label">标题</label>
					<div class="layui-input-block">
						<input type="text" name="title" lay-verify="required" placeholder="请输入标题" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">简介</label>
					<div class="layui-input-block">
						<input type="text" name="info" lay-verify="required" placeholder="请输入简介" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">点击量</label>
					<div class="layui-input-block">
						<input type="text" name="clicks" lay-verify="required" placeholder="请输入点击量" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">来源</label>
					<div class="layui-input-block">
						<input type="text" name="source" lay-verify="required" placeholder="请输入来源" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">封面图</label>
					<div class="layui-input-block" style="padding-left: 10px;">
						<img src="" id="thumb_img" style="height: 150px;width: 250px;" />
						<input type="hidden" name="thumb" id="thumb" />
						<input onchange="UploadFile('news',200)" type="file" accept="image/*" id="file" name="file">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">VIP专享</label>
					<div class="layui-input-block">
						<input type="radio" name="vip" value="1" title="否">
						<input type="radio" name="vip" value="2" title="是" checked>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">排序</label>
					<div class="layui-input-block">
						<input type="text" name="sort" value="0" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">内容</label>
					<div class="layui-input-block">
						<script id="content" name="content" type="text/plain"></script>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="*"><i class="fa fa-save"></i> 添加</button>
						<a href="{:url('index')}" class="layui-btn layui-btn-primary"><i class="fa fa-arrow-left"></i> 返回</a>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
{/block}{block name='script'}
<script src="__JS__/image.zip.js"></script>
<script type="text/javascript" src="/public/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/public/ueditor/ueditor.all.js"></script>
<script type="text/javascript">
	var ue = UE.getEditor('content', {
		serverUrl: "{:url('ueditor/index?cate=news')}"
	});
</script>
{/block}